package com.example.spring.bean.load08lifecycle.orderCompare;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入bean
 * <p>
 * <p>
 */
@Configuration
class InitConfig {

    @Bean(initMethod = "init", destroyMethod = "close")
    Door door() {
        return new Door();
    }

}
